/**
 * Created by Administrator on 2015/3/15.
 */
var layout = angular.module('layout', ['layoutDirective', 'layoutCtrl', 'layoutRouter']);

var TPLROOT = './tpls/';//模板根路径
var ROOT = 'http://localhost';//web根路径
//封装angularjs查找dom
function _$(element) {
    return angular.element(element);
}
//数据表格自动改变大小
$(window).resize(function () {
    $('#dg').datagrid('resize');
    setHeight();
});
window.onload = function(){
    setTimeout(function(){
        setHeight();
    },1000);
}

/**
 * 给主体内容加上右边框
 * 点击头部指令也有调用
 */
function setHeight() {
    $('#main').css('min-height', $(window).height() - 120);
}

